home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / lib / udev / rules.d / 85-ifupdown.rules < prev    next >
Encoding:
Text File  |  2009-03-05  |  728 b   |  11 lines

  1. # This file causes network devices to be brought up or down as a result
  2. # of hardware being added or removed, including that which isn't ordinarily
  3. # removable.
  4. # See udev(7) for syntax.
  5.  
  6. # Bring devices up and down only if they're marked auto.
  7. # Use start-stop-daemon so we don't wait on dhcp
  8. SUBSYSTEM=="net", TEST!="/var/run/network/ifstate", RUN+="/bin/mkdir /var/run/network"
  9. SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow auto $env{INTERFACE}"
  10. SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifdown -- --allow auto $env{INTERFACE}"
  11.